Version

SetCheckState(List<ValueListItem>,CheckState) Method

Sets the value of the CheckState property for each ValueListItem in the specified list.
Syntax
'Declaration
 
Public Overloads Sub SetCheckState( _
   ByVal items As List(Of ValueListItem), _
   ByVal value As CheckState _
) 
public void SetCheckState( 
   List<ValueListItem> items,
   CheckState value
)

Parameters

items
A generic list of the ValueListItem instances whose check state is to be modified.
value
The new value for the CheckState property.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionIf the value of the items parameter is null, or any item therein contains a null reference.
System.ExceptionIf any item in the specified list is associated with a different ValueListitems collection, or does not belong to any collection.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also